]> dgit.raspbian.org Git - gnome-shell.git/commit
overviewControls: Set expandFraction for ws thumbnails to 0 when hidden
authorJonas Dreßler <verdre@v0yd.nl>
Sun, 12 May 2024 09:51:35 +0000 (11:51 +0200)
committerMarge Bot <marge-bot@gnome.org>
Tue, 14 May 2024 18:24:07 +0000 (18:24 +0000)
commit9bf550da881f9f3d38787cecdcaeae8f471d8a47
tree8903bb1e4cfc587781555d30b79996e156af0550
parent57d0691c3a7c86d4ae737787b5ac95d5b6de31ef
overviewControls: Set expandFraction for ws thumbnails to 0 when hidden

We multiply the spacing around the workspace thumbnails with the
expandFraction so that it grows with the animation to show/hide them. We
shouldn't factor in the extra spacing to accomodate for the thumbnails in
case they're hidden though, so make sure expandFraction is set to 0 after
the thumbnails got hidden.

This fixes the spacing when a user never uses workspaces (and the workspace
thumbnails are never shown), and also the first transition from
hidden->shown for the thumbnails, which currently starts at 100% scale (ie.
pops into existence).

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3278>
js/ui/overviewControls.js